sarubasedir=$(pkglibdir)
sarubase_SCRIPTS = saru-base.dll
EXTRA_DIST = $(sarubase_sources) $(sarubase_sources_in)
CLEANFILES = saru-base.dll
DISTCLEANFILES = AssemblyInfo.cs Makefile.in

sarubase_sources_in = AssemblyInfo.cs.in
sarubase_generated_sources = $(sarubase_sources_in:.in=)
sarubase_sources = math/vector2.cs \
                   math/vector3.cs \
                   math/vector4.cs \
                   math/matrix2.cs \
                   math/matrix3.cs \
                   math/matrix4.cs \
                   math/plane3.cs \
                   math/colorrgb.cs \
                   math/colorrgba.cs 

sarubase_build_sources = $(addprefix $(srcdir)/, $(sarubase_sources))
sarubase_build_sources += $(sarubase_generated_sources)

saru-base.dll: $(sarubase_build_sources)
	$(MCS) -target:library -out:$@ $(sarubase_build_sources)
